import type { RouteRecordRaw } from 'vue-router'
import Layout from '@/layout/index.vue'

export default {
  path: '/dashboard',
  name: 'Dashboard',
  redirect: '/dashboard/workplace',
  component: Layout,
  meta: {
    title: '首页',
    icon: 'House',
    sort: 1
  },
  children: [
    {
      path: '/dashboard/workplace',
      name: 'Workplace',
      component: () => import('@/views/dashboard/views/workplace/index.vue'),
      meta: {
        title: '工作台',
        needLogin: true,
        alive: true,
        menu: true,
        roles: ['*']
      }
    }
  ]
} as RouteRecordRaw
